package com.masblearn;

import java.awt.*;

public class Wall extends GameObject {
    int w,h;

    public Rectangle rectangle;

    public Wall(int x,int y,int w,int h){
        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;

        rectangle = new Rectangle(x,y,w,h);
    }

    @Override
    public void paint(Graphics g) {
        g.drawRect(x,y,w,h);
    }

    @Override
    public int getWidth() {
        return w;
    }

    @Override
    public int getHeight() {
        return h;
    }
}
